// 评论
import axios from "@/utils/ruquest";
//获取文章的新闻评论列表
export const getNewsCommentAPI=(id,params)=>{
    return axios({
        url:`/api/getcomments/${id}`,
        method:'GET',
        params,
    })
}
//发表评论
export const publishCommentAPI=(artid,content)=>{
    return axios({
        url:`/api/postcomment/${artid}`,
        method:'POST',
        data:`content=${content}`
    })
}